From ee3ce93336d427633521b0c98dcd951761abd70b Mon Sep 17 00:00:00 2001 From: Jason Rumney Date: Sat, 7 Oct 2006 20:09:09 +0000 Subject: [PATCH] 2006-10-07 Ralf Angeli * w32fns.c (w32_createwindow): Honour left and top positions if supplied explicitly. --- src/w32fns.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/w32fns.c b/src/w32fns.c index 4f07817b566..f7e211649e0 100644 --- a/src/w32fns.c +++ b/src/w32fns.c @@ -2108,7 +2108,12 @@ w32_createwindow (f) } } - if (EQ (left, Qunbound) && EQ (top, Qunbound)) + if (f->size_hint_flags & USPosition || f->size_hint_flags & PPosition) + { + XSETINT (left, f->left_pos); + XSETINT (top, f->top_pos); + } + else if (EQ (left, Qunbound) && EQ (top, Qunbound)) { /* When called with RES_TYPE_NUMBER, w32_get_arg will return zero for anything that is not a number and is not Qunbound. */ -- 2.30.2